package pro.ticktock.tools.mbconv;

import java.io.IOException;

/**
 * Created by lambert on 2017/5/29.
 */
public class Pass4 extends AbstractPass{
  protected Pass4(String origSrcFileName, String srcFileName) throws IOException {
    super(origSrcFileName, srcFileName);
  }

  @Override
  protected void doProcess() throws IOException {
    String line;
    while ((line = srcReader.readLine()) != null) {
      line = line.replace('笫', '第')
              .replace('／', '/')
              .replace("奏呜曲", "奏鸣曲")
              .replace("大凋", "大调")
              .replace("小凋", "小调")
              .replace("I)ecca", "Decca")
              .replace("Cl）编号", "CD编号")
              .replace("缟号", "编号")
              .replace("捉琴", "提琴")
              .replace("第～","第一")
              .replace("Ⅱ向","响")
              .replace("奠扎特", "莫扎特");
      //CDG->CDC?
      resultWriter.write(line + "\n");
    }
  }
}
